{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" id="tabs">
	<fieldset>
		<legend>{lang values="system|general"}</legend>
		<dl>
			<dt><label for="entries">{lang values="system|entries_per_page"}</label></dt>
			<dd>
				<select name="form[entries]" id="entries">
{foreach from=$entries item=row}
					<option value="{$row.value}"{$row.selected}>{$row.value}</option>
{/foreach}
				</select>
			</dd>
			<dt>
				<label for="flood">{lang values="system|flood_barrier"}</label>
				<span>({lang values="system|flood_barrier_description"})</span>
			</dt>
			<dd><input type="text" name="form[flood]" id="flood" value="{$form.flood}" maxlength="3" /></dd>
			<dt>
				<label for="homepage">{lang values="system|homepage"}</label>
				<span>({lang values="system|homepage_description"})</span>
			</dt>
			<dd><input type="text" name="form[homepage]" id="homepage" value="{$form.homepage}" /></dd>
			<dt><label for="wysiwyg">{lang values="system|editor"}</label></dt>
			<dd>
				<select name="form[wysiwyg]" id="wysiwyg">
{foreach from=$wysiwyg item=row}
					<option value="{$row.value}"{$row.selected}>{$row.lang}</option>
{/foreach}
				</select>
			</dd>
		</dl>
	</fieldset>
	<fieldset>
		<legend>{lang values="common|date"}</legend>
		<dl>
			<dt>
				<label for="date">{lang values="system|date_format"}</label>
				<span>({lang values="system|php_date_function"})</span>
			</dt>
			<dd><input type="text" name="form[date]" id="date" value="{$form.date}" maxlength="20" /></dd>
			<dt><label for="time-zone">{lang values="common|time_zone"}</label></dt>
			<dd>
				<select name="form[time_zone]" id="time-zone">
{foreach from=$time_zone item=row}
					<option value="{$row.value}"{$row.selected}>{$row.lang}</option>
{/foreach}
				</select>
			</dd>
			<dt><label for="dst-1">{lang values="common|daylight_saving_time"}</label></dt>
			<dd>
{foreach from=$dst item=row}
				<label for="dst-{$row.value}">
					<input type="radio" name="form[dst]" id="dst-{$row.value}" value="{$row.value}" class="checkbox"{$row.checked} />
					{$row.lang}
				</label>
{/foreach}
			</dd>
		</dl>
	</fieldset>
	<fieldset>
		<legend>{lang values="system|maintenance"}</legend>
		<dl>
			<dt><label for="maintenance-1">{lang values="system|maintenance_mode"}</label></dt>
			<dd>
{foreach from=$maintenance item=row}
				<label for="maintenance-{$row.value}">
					<input type="radio" name="form[maintenance]" id="maintenance-{$row.value}" value="{$row.value}" class="checkbox"{$row.checked} />
					{$row.lang}
				</label>
{/foreach}
			</dd>
			<dt><label for="maintenance-msg">{lang values="system|maintenance_msg"}</label></dt>
			<dd><textarea name="form[maintenance_msg]" id="maintenance-msg" cols="50" rows="6">{$form.maintenance_msg}</textarea></dd>
		</dl>
	</fieldset>
	<fieldset>
		<legend>{lang values="system|seo"}</legend>
		<dl>
			<dt><label for="title">{lang values="system|title"}</label></dt>
			<dd><input type="text" name="form[title]" id="title" value="{$form.title}" maxlength="120" /></dd>
			<dt><label for="meta-description">{lang values="system|description"}</label></dt>
			<dd><input type="text" name="form[meta_description]" id="meta-description" value="{$form.meta_description}" maxlength="120" /></dd>
			<dt>
				<label for="meta-keywords">{lang values="system|keywords"}</label>
				<span>({lang values="system|separate_with_commas"})</span>
			</dt>
			<dd><textarea name="form[meta_keywords]" id="meta-keywords" cols="50" rows="6">{$form.meta_keywords}</textarea></dd>
			<dt>
				<label for="sef-1">{lang values="system|mod_rewrite"}</label>
				<span>({lang values="system|mod_rewrite_description"})</span>
			</dt>
			<dd>
{foreach from=$sef item=row}
				<label for="sef-{$row.value}">
					<input type="radio" name="form[sef]" id="sef-{$row.value}" value="{$row.value}" class="checkbox"{$row.checked} />
					{$row.lang}
				</label>
{/foreach}
			</dd>
		</dl>
	</fieldset>
	<fieldset>
		<legend>{lang values="system|db_connection_settings"}</legend>
		<dl>
			<dt><label for="db-host">{lang values="system|host"}</label></dt>
			<dd><input type="text" name="form[db_host]" id="db-host" value="{$form.db_host}" /></dd>
			<dt><label for="db-user">{lang values="system|db_username"}</label></dt>
			<dd><input type="text" name="form[db_user]" id="db-user" value="{$form.db_user}" /></dd>
			<dt><label for="db-pwd">{lang values="system|db_password"}</label></dt>
			<dd><input type="text" name="form[db_pwd]" id="db-pwd" value="{$form.db_pwd}" /></dd>
			<dt><label for="db-name">{lang values="system|db_name"}</label></dt>
			<dd><input type="text" name="form[db_name]" id="db-name" value="{$form.db_name}" /></dd>
			<dt><label for="db-pre">{lang values="system|table_prefix"}</label></dt>
			<dd><input type="text" name="form[db_pre]" id="db-pre" value="{$form.db_pre}" /></dd>
			<dt><label for="db-type">{lang values="system|db_type"}</label></dt>
			<dd>
				<select name="form[db_type]" id="db-type">
{foreach from=$db_type item=row}
					<option value="{$row.value}"{$row.selected}>{$row.lang}</option>
{/foreach}
				</select>
			</dd>
		</dl>
	</fieldset>
	<div class="form-bottom">
		<input type="submit" name="submit" value="{lang values="common|submit"}" class="form" />
	</div>
</form>